"""
行为树黑板-客户端-生命周期
"""

import py_trees

if __name__ == "__main__":
    blackboard = py_trees.blackboard.Client(name="Writer")
    blackboard.register_key(key="foo", access=py_trees.common.Access.READ)
    result = blackboard.set("foo", "bar", overwrite=False)  # NG
    result = blackboard.set("foo", "bar", overwrite=True)  # NG
